package cn.vw.hi.commen.action;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts2.ServletActionContext;

import cn.vw.hi.commen.tools.Page;
import cn.vw.hi.list.manager.BusinessManager;
import cn.vw.hi.user.manager.WebsiteConfigerManager;

import com.opensymphony.xwork2.ActionSupport;

public class IndexAction extends ActionSupport {
	private WebsiteConfigerManager websiteConfigerManager=null;
	private BusinessManager businessManager=null;
	private Page pageObj=null;
	private List businessList=null;
	
	@SuppressWarnings("unchecked")
	@Override
	public String execute() throws Exception {
		pageObj=new Page();
		pageObj.setCurrentPage(1);
		pageObj.setPageSize(7);
		businessList=businessManager.businessList(pageObj, "");
		return "success";
	}
	public Page getPageObj() {
		return pageObj;
	}
	public void setPageObj(Page pageObj) {
		this.pageObj = pageObj;
	}
	public List getBusinessList() {
		return businessList;
	}
	public void setBusinessList(List businessList) {
		this.businessList = businessList;
	}
	
	public WebsiteConfigerManager getWebsiteConfigerManager() {
		return websiteConfigerManager;
	}
	public void setWebsiteConfigerManager(
			WebsiteConfigerManager websiteConfigerManager) {
		this.websiteConfigerManager = websiteConfigerManager;
	}
	public BusinessManager getBusinessManager() {
		return businessManager;
	}
	public void setBusinessManager(BusinessManager businessManager) {
		this.businessManager = businessManager;
	}

}
